package com.wanlian.common;

import java.util.HashMap;
import java.util.Map;

public class JPushComUtil {

    public static final int SMSMAXSENCODE = 24 * 60 * 60;

    private static String appkey = "e02279918f1b7f054573c247";
    private static String masterSecret = "191db9f2621eabd37f944eb3";

    public static Map<String, String> getheaders() {
        Map<String, String> headers = new HashMap<String, String>();
        String keyvalue = getkeyCode();
        headers.put("Authorization", keyvalue);
        return headers;
    }

    public static String getkeyCode() {
        String keyvalue = String.format("%s:%s", appkey, masterSecret);
        keyvalue = "Basic " + CoderUtil.encode(keyvalue);
        return keyvalue;
    }
}
